/*
 * @Author: Li Zengkun
 * @Date: 2022-09-26 20:08:00
 * @LastEditors: Li Zengkun
 * @LastEditTime: 2022-09-26 20:10:35
 * @Description: 
 */
import axios from "axios"

// 上传商品主图
const upGoods = (data) => axios.post("/upload/goods", data)

// 删除图片API
const remove = (params) => axios.delete("/upload", { params })

// 富文本编辑器图片上传
const editor = (data) => axios.post("/upload/editor", data)

// 轮播图上传API
const upSlider = (data) => axios.post("/upload/slider", data)

// 通用图片上传API
const upCommon = (data) => axios.post("/upload/common", data)

export default {
    upGoods,
    remove,
    editor,
    upSlider,
    upCommon
}